package com.bum.guru.exp.dj.om;

import java.io.Serializable;

public class Song implements Serializable {
	private static final long	serialVersionUID	= 1L;

	private long				id;
	private String				name;
	private String				url;
	private int					catId;
	private Long				djId;
	private String				trackList;
	private int					noHits;
	private int					noDowns;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public String getUrlStream() {
		// http://nhac.matxac.com/44/98419456.flv
		String[] parts = url.replace("http://nhac.matxac.com/", "").replace(".flv", "").split("/");
		return "http://www" + parts[0] + ".zippyshare.com/downloadMusic?key=" + parts[1] + "&time=" + System.currentTimeMillis();
	}

	public String getUrlDown() {
		// http://nhac.matxac.com/44/98419456.flv
		String[] parts = url.replace("http://nhac.matxac.com/", "").replace(".flv", "").split("/");
		return "http://www" + parts[0] + ".zippyshare.com/v/" + parts[1] + "/file.html";
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getCatId() {
		return catId;
	}

	public void setCatId(int catId) {
		this.catId = catId;
	}

	public Long getDjId() {
		return djId;
	}

	public void setDjId(Long djId) {
		this.djId = djId;
	}

	public String getTrackList() {
		return trackList;
	}

	public void setTrackList(String trackList) {
		this.trackList = trackList;
	}

	public int getNoHits() {
		return noHits;
	}

	public void setNoHits(int noHits) {
		this.noHits = noHits;
	}

	public int getNoDowns() {
		return noDowns;
	}

	public void setNoDowns(int noDowns) {
		this.noDowns = noDowns;
	}
}
